// FImageDialog.h
//

//
// FImageDialog
//
class FImageDialog : public FPluginDialog {
public:
	FImageDialog(); 

	virtual void Init( int resourceId );
	virtual void OnCommand( int cmd );
private:
	void	WriteImage( string filename, FTextureFormat_t format );
	void	ConvertAndBlitImage( unsigned int format );
	void	BlitImageData( int pictureControl, byte *data, unsigned int width, unsigned int height, unsigned int bpp );
	void	MLoadImage( const char *str );
	void	EnableOptions( void );
	unsigned int image;
	unsigned int imagePreview;
	bool	pendingImage;
};